<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/common/taglibs.jsp" %>
<html>
<head>
<title>软件下载管理</title>
<%@include file="/common/meta.jsp" %>
</head>
<body>
	<script type="text/javascript">
	function AddToShoppingCart(arg){
		 var url = "${ctx }/cart/add.do?item.book.id="+arg+"&item.count=1";
		 var popup=window.open(url,"cartWindow");
         popup.focus();

	}
	</script>
	<table>
		<c:forEach items="${list}" var="book">
			<tr>
				
		    	<td><a href="javascript:AddToShoppingCart(${book.id})" >
		    		${book.name}
		    	</a>
		    		
			</tr>
		</c:forEach>
	</table>
	<form id="frm" action="${ctx }/cart/add.do" method="post" target="_blank">
		<input type="hidden" name="item.book.id" id="bookId"></input>
		<input type="hidden" name="item.count" id="count"></input>
	</form>

</body>
</html>